<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OpenIG: Core-Base/Animation.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="openig_logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">OpenIG
   &#160;<span id="projectnumber">2.0.7</span>
   </div>
   <div id="projectbrief">cross-platform open-source OpenSceneGraph Image Generator</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_03afdc99cb57c147418d8186cf7c037f.html">Core-Base</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#typedef-members">Typedefs</a>  </div>
  <div class="headertitle">
<div class="title">Animation.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Plays animation on an Entity with a callbacks attached.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;Core-Base/Export.h&gt;</code><br />
<code>#include &lt;Core-Base/ImageGenerator.h&gt;</code><br />
<code>#include &lt;osg/Referenced&gt;</code><br />
<code>#include &lt;osg/ref_ptr&gt;</code><br />
<code>#include &lt;osg/Vec3&gt;</code><br />
<code>#include &lt;osg/Timer&gt;</code><br />
<code>#include &lt;utility&gt;</code><br />
<code>#include &lt;vector&gt;</code><br />
<code>#include &lt;string&gt;</code><br />
<code>#include &lt;map&gt;</code><br />
</div>
<p><a href="_animation_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_animation_sequence_playback_callback.html">OpenIG::Base::AnimationSequencePlaybackCallback</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The <a class="el" href="class_open_i_g_1_1_base_1_1_animation_sequence_playback_callback.html" title="The AnimationSequencePlaybackCallback class. ">AnimationSequencePlaybackCallback</a> class.  <a href="class_open_i_g_1_1_base_1_1_animation_sequence_playback_callback.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_ref_animation_sequence_callbacks.html">OpenIG::Base::RefAnimationSequenceCallbacks</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_animations.html">OpenIG::Base::Animations</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The <a class="el" href="class_open_i_g_1_1_base_1_1_animations.html" title="The Animations class. ">Animations</a> class.  <a href="class_open_i_g_1_1_base_1_1_animations.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation.html">OpenIG::Base::Animations::Animation</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The <a class="el" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation.html" title="The Animation struct. ">Animation</a> struct.  <a href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html">OpenIG::Base::Animations::Animation::Sequence</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The <a class="el" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html" title="The Sequence struct. ">Sequence</a> struct.  <a href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_1_1_sequence.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_container.html">OpenIG::Base::Animations::AnimationContainer</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Referenced pointer of std::vector of <a class="el" href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation.html">Animation</a>.  <a href="struct_open_i_g_1_1_base_1_1_animations_1_1_animation_container.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_open_i_g_1_1_base_1_1_animations_1_1_runtime_animation.html">OpenIG::Base::Animations::RuntimeAnimation</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The <a class="el" href="struct_open_i_g_1_1_base_1_1_animations_1_1_runtime_animation.html" title="The RuntimeAnimation struct. ">RuntimeAnimation</a> struct.  <a href="struct_open_i_g_1_1_base_1_1_animations_1_1_runtime_animation.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a20bce030649f2b72e19f63554426a942"><td class="memItemLeft" align="right" valign="top"><a id="a20bce030649f2b72e19f63554426a942"></a>
typedef std::map&lt; std::string, osg::ref_ptr&lt; AnimationSequencePlaybackCallback &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>OpenIG::Base::AnimationSequenceCallbacks</b></td></tr>
<tr class="separator:a20bce030649f2b72e19f63554426a942"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa295eddfd108a0ebbccf5d739ae2e6b5"><td class="memItemLeft" align="right" valign="top"><a id="aa295eddfd108a0ebbccf5d739ae2e6b5"></a>
typedef std::map&lt; std::string, osg::ref_ptr&lt; AnimationSequencePlaybackCallback &gt; &gt;::iterator&#160;</td><td class="memItemRight" valign="bottom"><b>OpenIG::Base::AnimationSequenceCallbacksIterator</b></td></tr>
<tr class="separator:aa295eddfd108a0ebbccf5d739ae2e6b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab740f00586e80f369440cd023a2b2374"><td class="memItemLeft" align="right" valign="top"><a id="ab740f00586e80f369440cd023a2b2374"></a>
typedef std::map&lt; std::string, osg::ref_ptr&lt; AnimationSequencePlaybackCallback &gt; &gt;::const_iterator&#160;</td><td class="memItemRight" valign="bottom"><b>OpenIG::Base::AnimationSequenceCallbacksConstIterator</b></td></tr>
<tr class="separator:ab740f00586e80f369440cd023a2b2374"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Plays animation on an Entity with a callbacks attached. </p>
<p>Plays animation on an Entity with an animation callback. For more info how the animations are supported pleas see <a class="el" href="class_open_i_g_1_1_base_1_1_image_generator.html#ab69a47ac1c5f34eccbe881ae553c73d9">OpenIG::Base::ImageGenerator::playAnimation</a>. The addition to basic animation playback is the list of <a class="el" href="class_open_i_g_1_1_base_1_1_animation_sequence_playback_callback.html">OpenIG::Base::AnimationSequencePlaybackCallback</a> from which gives us ability to control animation sequences in run-time by a run-time value. For example we can give landing gear failure: If we have animation animating a landing gear and it is defined to start and\ run to completition, we can stop the animation sequence by a run-time value, for example the landing gear at 60 degrees from its start position </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">entityId</td><td>The id of the Entity to play the animations </td></tr>
    <tr><td class="paramname">animations</td><td>The name of the animations, as defined in the model XML or for future versions the hame of the FBX animations </td></tr>
    <tr><td class="paramname">cbs</td><td>Referenced std::vector of <a class="el" href="class_open_i_g_1_1_base_1_1_animation_sequence_playback_callback.html">OpenIG::Base::AnimationSequencePlaybackCallback</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Sun Jan 11 2015 </dd></dl>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed May 16 2018 15:41:11 for OpenIG by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
